package com.biz.ssm.service.impl;

import com.biz.ssm.mapper.RoleAuthorityMapper;
import com.biz.ssm.base.BaseServiceImpl;
import com.biz.ssm.domain.RoleAuthority;
import com.biz.ssm.service.RoleAuthorityService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

import java.util.List;


/**
 *
 * RoleAuthorityService
 *
 **/
@Service
public class RoleAuthorityServiceImpl extends BaseServiceImpl<RoleAuthority, Long , RoleAuthorityMapper> implements RoleAuthorityService{

	@Resource
	private RoleAuthorityMapper roleAuthorityMapper;

	@Override
	public RoleAuthorityMapper getMapper() {
		return roleAuthorityMapper;
	}

	@Override
	public List<String> getAuthoritysByRole(Long roleId) {
		return roleAuthorityMapper.getAuthoritysByRole(roleId);
	}
}
